home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
crt0
/
brk.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-11-08
|
197 b
|
12 lines
#include <stdio.h>
#include <unistd.h>
int
main(void)
{
char *old = sbrk(0);
int new = brk(old+16);
printf("old was %p, new is %x, now at %p\n", old, new, sbrk(0));
return 0;
}